package com.qiang.demo01;

import java.util.Date;

public class Test10 {
    public static void main(String[] args) {
        Date date1 = new Date();
        System.out.println(date1);
        long time = date1.getTime();
        System.out.println(time);
        /*long date = 1000 * 60 * 60*2;
        Date date2 = new Date(date);
        System.out.println(date2);*/
    }
}
